package com.uchengwang.ui.cm_ui.rychat.config;

/**
 * Created by U城网 on 2017/10/28.
 */

public class WhoCanMoreGroupConfig {
    private long[] mobiles = {914, 891};

    private WhoCanMoreGroupConfig(){}
    private static WhoCanMoreGroupConfig config;

    public static WhoCanMoreGroupConfig getConfig() {
        if (config == null){
            config = new WhoCanMoreGroupConfig();
        }
        return config;
    }

    /**
     * 是否可以创建更多的群
     * */
    public boolean isCanMore(long uid){
        if (mobiles != null && mobiles.length >0){
            int length = mobiles.length;
            for (int i =0; i <length; i++){
                if (uid == mobiles[i]){
                    return true;
                }
            }
        }
        return false;
    }
}
